import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/merchant/refund/index`,
		name: "获取退款列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	detail: {
		url: `${config.API_URL}/merchant/refund/detail`,
		name: "退款详情",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	checkRefundMoney: {
		url: `${config.API_URL}/merchant/refund/checkRefundMoney`,
		name: "退款",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	checkRefundGoods: {
		url: `${config.API_URL}/merchant/refund/checkRefundGoods`,
		name: "退货",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
}
